#include "util/tester.h"
#include <stdio.h>
#include <stdbool.h>
#include <string.h>

static const char * TestPrintFmt = "TEST %s: [%s]\n";

void
SEx_TestBool ( char * testname, bool input, bool expected )
{
	bool ok = input == expected;
	printf( TestPrintFmt, testname, ok ? "OK" : "FAIL" );
	if ( !ok )
		printf("\tExpected: `%d`, input: `%d`\n", expected, input );
}

void
SEx_TestLines ( char * testname, const char * input, const char * expected )
{
	bool ok = strcmp( input, expected ) == 0;
	printf( TestPrintFmt, testname, ok ? "OK" : "FAIL" );
	if ( !ok )
		printf("\tExpected: `%s`, input: `%s`\n", expected, input );
}
